<div id="swipe-list" ng-controller="swipeListCtrl">
  <ion-list can-swipe="true" class="list-container" ng-if="items && items.length>0">
    <ion-item ng-repeat="item in items" ng-click="pick($index,$event,currentItem)">
      <div class="check-container">
        <div ng-class="item.isCheckIn ? 'check-on' : 'check-off'"ng-click="checkIn($index,$event)" ng-if="needOnLine"></div>
      </div>
      <div class="check-container">
        <div ng-class="item.isCheckIn ? 'check-on' : 'check-off'"ng-click="checkIn($index,$event)" ng-if="needDownLine"></div>
      </div>
      <div class="check-container" style="top:37px;">
        <div ng-class="item.isCheckIn ? 'check-on' : 'check-off'"ng-click="checkIn($index,$event)" ng-if="needSendAll"></div>
      </div>
      <img ng-src="{{item.img}}" alt="" ng-if="item.img"/>
      <div class="txt-container">
        <p>{{item.txt1}}</p>
        <p>{{item.txt2}}</p>
        <p>{{item.txt3}}</p>
        <p>{{item.txt4}}</p>
        <p>{{item.txt5}}</p>
        <div class="vipList" ng-if="isVip">
          <div class="head-list">
            <p>{{item.username}}</p>
            <div class="select">
              <select ng-model="item.usertypeid" ng-options="itemType.typeid as itemType.typename for itemType in itemsUserTypeList" ng-change="changeType(item)">
              </select>
            </div>
          </div>
          <div class="list-account">
            <span class="top-span">账户余额</span>
            <span class="down-span">{{item.account}} <span style="color:#828282;">元</span></span>
            <p ng-click="goAccount(item,$event)">增加</p>
          </div>
          <div class="list-overdraft">
            <span class="top-span">信用额度</span>
            <span class="down-span">{{item.overdraft}} <span style="color:#828282;">元</span></span>
            <p ng-click="goReset(item,$event)">重置</p>
          </div>
        </div>
        <img ng-if="!needSendAll && isVip" ng-click="sendMessage(item,$event)" class="message" src="img/sendmessage.png"/>
      </div>
      <ion-option-button ng-if="isVip" class="button-info button-positive" ng-click="revise($index,$event)">
        修改
      </ion-option-button>
      <ion-option-button ng-if="itemShare !=undefined" class="button-info button-positive" ng-click="share($index,$event)">
        分享
      </ion-option-button>
      <ion-option-button class="button-info button-assertive" ng-click="remove($index,$event)">
        删除
      </ion-option-button>
    </ion-item>
  </ion-list>
</div>
